/**
 * 
 */
package org.agiba.jira.plugin.model;

/**
 * This model class represents a XWiki document.
 * 
 * @author Thorsten Kamann <thorsten.kamann@googlemail.com>
 */
public class XWikiDocumentInfo {
	private String name;
	private String url;
	private String title;
	private String excerpt;
	
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	public XWikiDocumentInfo withName(String name){
		setName(name);
		return this;
	}
	
	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	
	public XWikiDocumentInfo withUrl(String url){
		setUrl(url);
		return this;
	}
	
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	
	public XWikiDocumentInfo withTitle(String title){
		setTitle(title);
		return this;
	}
	
	/**
	 * @return the excerpt
	 */
	public String getExcerpt() {
		return excerpt;
	}
	/**
	 * @param excerpt the excerpt to set
	 */
	public void setExcerpt(String excerpt) {
		this.excerpt = excerpt;
	}
	
	public XWikiDocumentInfo withExcerpt(String excerpt){
		setExcerpt(excerpt);
		return this;
		
	}

}
